/*
 * @Descripttion: 高库存分析列表头配置
 * @Author: caijj
 * @Date: 2020-12-07 14:40:12
 * @LastEditors: caijj
 * @LastEditTime: 2020-12-07 14:40:38
 */
// 商品版
const columns = [
  {
    prop: 'tradeName',
    label: '商品名称',
    minWidth: '180px'
  },
  {
    prop: 'commodityCode',
    label: '商品代码',
    minWidth: '180px'
  },
  {
    prop: 'isItAPrivateBrand',
    minWidth: '180px',
    label: '是否自有品牌'
  },
  {
    prop: 'categoryStandardTurnoverDays',
    minWidth: '180px',
    label: '大类标准周转天数'
  },
  {
    prop: 'daysOfInventoryTurnover',
    minWidth: '180px',
    label: '库存周转天数'
  },
  {
    prop: 'inventoryAmount',
    minWidth: '180px',
    label: '库存金额'
  },
  {
    prop: 'salesRevenue',
    minWidth: '180px',
    label: '销售收入'
  },
  {
    prop: 'orderAmountExcludingTax',
    minWidth: '180px',
    label: '订货金额不含税'
  },
  {
    prop: 'numberOfOrders',
    minWidth: '180px',
    label: '订货数'
  },
  {
    prop: 'purchaseQuantity',
    minWidth: '180px',
    label: '进货数'
  },
  {
    prop: 'productSpecifications',
    minWidth: '180px',
    label: '商品规格'
  },
  {
    prop: 'departmentCode',
    minWidth: '180px',
    label: '部门代码'
  },
  {
    prop: 'departmentName',
    minWidth: '180px',
    label: '部门名称'
  },
  {
    prop: 'categoryCoding',
    minWidth: '180px',
    label: '大类编码'
  },
  {
    prop: 'categoryName',
    minWidth: '180px',
    label: '大类名称'
  },
  {
    prop: 'middleClassCoding',
    minWidth: '180px',
    label: '中类编码'
  },
  {
    prop: 'middleClassName',
    minWidth: '180px',
    label: '中类名称'
  },
  {
    prop: 'subclassCoding',
    minWidth: '180px',
    label: '小类编码'
  },
  {
    prop: 'subclassName',
    minWidth: '180px',
    label: '小类名称'
  }
];

export default columns;
// 详情版
export const detailCol = [
  {
    prop: 'tradeName',
    label: '商品名称',
    minWidth: '180px'
  },
  {
    prop: 'commodityCode',
    label: '商品代码',
    minWidth: '180px'
  },
  {
    prop: 'formats',
    minWidth: '180px',
    label: '业态'
  },
  {
    prop: 'regional',
    minWidth: '180px',
    label: '大区'
  },
  {
    prop: 'city',
    minWidth: '180px',
    label: '城市'
  },
  {
    prop: 'branchNumber',
    minWidth: '180px',
    label: '分店编号'
  },
  {
    prop: 'branchName',
    minWidth: '180px',
    label: '分店名称'
  },
  {
    prop: 'isItRefundable',
    minWidth: '180px',
    label: '是否可退'
  },
  {
    prop: 'businessType',
    minWidth: '180px',
    label: '业务类型'
  },
  {
    prop: 'isItAPrivateBrand',
    minWidth: '180px',
    label: '是否自有品牌'
  },
  {
    prop: 'categoryStandardTurnoverDays',
    minWidth: '180px',
    label: '大类标准周转天数'
  },
  {
    prop: 'daysOfInventoryTurnover',
    minWidth: '180px',
    label: '库存周转天数'
  },
  {
    prop: 'highInventory',
    minWidth: '180px',
    label: '是否高库存'
  },
  {
    prop: 'inventoryAmount',
    minWidth: '180px',
    label: '库存金额'
  },
  {
    prop: 'salesRevenue',
    minWidth: '180px',
    label: '销售收入'
  },
  {
    prop: 'nameOfSupplier',
    minWidth: '180px',
    label: '供货单位名称'
  },
  {
    prop: 'orderAmountExcludingTax',
    minWidth: '180px',
    label: '订货金额不含税'
  },
  {
    prop: 'numberOfOrders',
    minWidth: '180px',
    label: '订货数'
  },
  {
    prop: 'purchaseQuantity',
    minWidth: '180px',
    label: '进货数'
  },
  {
    prop: 'productSpecifications',
    minWidth: '180px',
    label: '商品规格'
  },
  {
    prop: 'departmentCode',
    minWidth: '180px',
    label: '部门代码'
  },
  {
    prop: 'departmentName',
    minWidth: '180px',
    label: '部门名称'
  },
  {
    prop: 'categoryCoding',
    minWidth: '180px',
    label: '大类编码'
  },
  {
    prop: 'categoryName',
    minWidth: '180px',
    label: '大类名称'
  },
  {
    prop: 'middleClassCoding',
    minWidth: '180px',
    label: '中类编码'
  },
  {
    prop: 'middleClassName',
    minWidth: '180px',
    label: '中类名称'
  },
  {
    prop: 'subclassCoding',
    minWidth: '180px',
    label: '小类编码'
  },
  {
    prop: 'subclassName',
    minWidth: '180px',
    label: '小类名称'
  }
];
export const cityColumns = [
  {
    prop: 'rowLabel',
    key: 'rowLabel',
    label: '   行标签   ',
    width: '250px',
    align: 'left',
    tooltip: true
  },
  {
    prop: 'stock-amount',
    key: 'stock-amount',
    label: '库存金额',
    children: [
      {
        prop: 'chooseBalanceAmount',
        key: 'chooseBalanceAmount',
        // width: '100%',
        label: '“选择日期”库存金额'
      },
      {
        prop: 'compareBalanceAmount',
        key: 'compareBalanceAmount',
        // markStyle: true,
        // width: '100%',
        label: '“对比日期”库存金额',
        className: null
      },
      {
        prop: 'ratioBalanceAmount',
        key: 'ratioBalanceAmount',
        // width: '100%',
        markStyle: true,
        // toPercent: true,
        label: '环比',
        className: null
      },
      {
        prop: 'compareByBeginBalanceAmount',
        key: 'compareByBeginBalanceAmount',
        // width: '100%',
        markStyle: true,
        toPercent: true,
        label: '较本月月初变化幅度',
        className: null
      }
    ]
  },
  {
    prop: 'sales-revenue',
    key: 'sales-revenue',
    label: '销售收入',
    children: [
      {
        prop: 'chooseSalesIncome',
        key: 'chooseSalesIncome',
        // width: '100%',
        label: '“选择日期”销售收入'
      },
      {
        prop: 'compareSalesIncome',
        key: 'compareSalesIncome',
        // width: '100%',
        // markStyle: true,
        // toPercent: true,
        label: '“对比日期”销售收入',
        className: null
      },
      {
        prop: 'ratioSalesIncome',
        key: 'ratioSalesIncome',
        // width: '100%',
        markStyle: true,
        // toPercent: true,
        label: '环比',
        className: null
      },
      {
        prop: 'compareByBeginSalesIncome',
        key: 'compareByBeginSalesIncome',
        // width: '100%',
        markStyle: true,
        toPercent: true,
        label: '较本月月初变化幅度',
        className: null
      }
    ]
  }
];
